package com.bobo.mall.product.feign;

import com.bobo.common.to.SkuHasStockVo;
import com.bobo.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import java.util.List;

@FeignClient(value = "mall-ware")
public interface WareFeignService {

    /**
     * 1、R设计的时候加入泛型
     * 2、直接返回我们需要的结果
     * 3、自己封装结果然后解析
     * @param skuIds
     * @return
     */
    @PostMapping("/ware/waresku/hasstock")
    List<SkuHasStockVo> hasStock(@RequestBody List<Long> skuIds);
}
